package com.example.post.mapper;
import com.example.post.model.Blog;
import com.example.post.model.Bookmark;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookmarkMapper {
    void addBookmark(Bookmark bookmark);
    void deleteBookmark(int blogId);
    int countBookmarkById(int bookmarkId);
    boolean checkBookmark(int blogId);
    List<Blog> getBookmarksByUserId(int userId);

}

